/**
 * Created with IntelliJ IDEA
 * Description 日期类
 * User: 王杰
 * Date: 2025-05-17
 * Time: 18:19
 */
public class Date {
    private int year;
    private int month;
    private int day;

    public void setDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDate() {
        System.out.println(year + "年 " + month + "月 " + day + "日");
    }

    public static void main(String[] args) {
        Date date = new Date();
        date.setDate(2008,8,8);
        date.printDate();
    }
}
